package com.itcast.service;

import com.itcast.dao.PublishDao;
import com.itcast.dao.PublishDaoImpl;
import com.itcast.pojo.Publish;

import java.util.List;

public class PublishServiceImpl implements  PublishService {
    private PublishDao publishDao=new PublishDaoImpl();

    @Override
    public List<Publish> findAll() {
        return publishDao.findAll();
    }

    @Override
    public void InsertPublish(Publish publish) {
        publishDao.InsertPublish(publish);
    }
}
